<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>客户管理</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<script src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
	<script src="__PUBLIC__/js/jquery.validate.js"></script>
	<!-- <script src="__PUBLIC__/js/jquery.metadata.js"></script> -->
    <script src="__PUBLIC__/js/messages_cn.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Css/jquery.validate.css" />
	<link rel="stylesheet" href="__PUBLIC__/Css/jquery.mobile-1.2.0.css" />		
	<script src="__PUBLIC__/js/jquery.mobile-1.2.0.js"></script>
    <script type="text/javascript">
      $().ready(function() {
    	 $("#customer").validate();  
    	});
    </script>
</head>
<body>
<div data-role="page"> 
　<div data-role="header" data-position="fixed">　<a href="__URL__/index" rel="external" data-role="button" data-icon="back">后退</a>
           <div style="text-align:center;" >添加客户</div>   
           <a href="#" data-role="button" data-icon="refresh">刷新</a></div> 
　 <div data-role="content">
  <form method="post" action="__URL__/insert" data-ajax="false" id="customer" class="validate">
   <input type="hidden" name="userid" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/>     
  <table align="center">	      
			<tr>
			<td><label for="customerno"><em>*</em>客户号：</label></td><td><input name="customerno" type="text" required  id="customerno"readonly
					value="<?php echo date('YmdHis')?>" alt="请输入客户编号" onfocus="changeFocus();"/></td>
			</tr>
			<tr>
			<td><label for="customertype">客户类型：</label></td>
			<td>
			<input name="customertype" id="customertype" type="text" />
			  
			  </td>
			</tr>
			<tr>
			<td><label for="customername"><em>*</em>客户名称：</label></td><td><input name="customername" id="customername" required type="text" /></td>
			</tr>
			<tr>
			<td><label>业务员：</label></td><td><input type="text" name="customermanager"/></td>
			</tr>
			<tr>
			<td><label>电话：</label></td><td><input name="phone" class="phone" type="text"/></td>
			</tr>
			<tr>
			<td><label>传真：</label></td><td><input name="fax" type="text"/></td>
			</tr>
			<tr>
			<td><label>网址：</label></td><td><input  name="site" type="text" /></td>
			</tr>
			<tr>
			<td><label>邮箱：</label></td><td><input type="text" name="email"/></td>
			</tr>
			<tr>
			<td><label>城市：</label></td><td><input type="text" name="city"/></td>
			</tr>
			<tr>
			<td><label>邮编：</label></td><td><input type="number" name="zip"/></td>
			</tr>
			<tr>
			<td><label>地址：</label></td><td><input type="text" name="address"/></td>
			</tr>
			<tr>
			<td><label>开户银行：</label></td><td><input type="text" name="openbank"/></td>
			</tr>
			<tr>
			<td><label>银行账号：</label></td><td><input type="text" name="accountsno"/></td>
			</tr>
			<tr>
			<td><label>税号：</label></td><td><input type="text" name="taxno"/></td>
			</tr>
			<tr>
			<td><label>备注：</label></td><td><textarea name="notes" cols="56"  rows="3"></textarea></td>
			</tr>
			<tr>
			<td colspan="2">
			<div data-type="horizontal" data-role="controlgroup"  style="text-align:center;">
			<input type="submit" value="保存" data-icon="check"/>
			<a href="__URL__/index" rel="external" data-icon="back" data-role="button" >取消</a>
			</div></td>
			</tr>
</table>
</form>
</div> 
</div>
</body>
</html>